<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<html>
<head>
    <title>商品分类管理</title>
    <link rel="stylesheet" type="text/css" href="/static/js/jquery-easyui/themes/default/easyui.css">
    <link rel="stylesheet" type="text/css" href="/static/js/jquery-easyui/themes/icon.css">
    <script type="text/javascript" src="/static/js/jquery-easyui/jquery.min.js"></script>
    <script type="text/javascript" src="/static/js/jquery-easyui/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="/static/js/jquery-easyui/locale/easyui-lang-zh_CN.js"></script>
    <script type="text/javascript" src="/static/js/views/secondProduct.js"></script>
</head>
<body>
<%-- 顶部增删改查功能按钮 --%>
<div id="product_toolbar" style="background-color: white;">
    <a class="easyui-linkbutton" plain="true" iconCls="icon-add" data-cmd="addproduct">添加</a>

    <a class="easyui-linkbutton" plain="true" iconCls="icon-edit" data-cmd="editproduct">编辑</a>

    <a class="easyui-linkbutton" plain="true" iconCls="icon-remove" data-cmd="removeproduct">删除</a>

    <a class="easyui-linkbutton" plain="true" iconCls="icon-reload" data-cmd="reloadproduct">刷新</a>

    &emsp;&emsp;
    <span style="color: white">关键字:</span>
    <input class="easyui-textbox" id="keyword">
    <a class="easyui-linkbutton"plain="true"  iconCls="icon-search" data-cmd="search">查询</a>
    <table id="product_datagrid"plain="true"  class="easyui-datagrid" style="height: 600px"></table>
</div>
<%-- 编辑产品信息弹框 --%>
<div id="product_dialog" class="easyui-dialog" title="编辑产品信息" data-options="buttons:'#product_dialog_buttons',closed:true">
    <form id="product_add_form" style="margin: 10px" method="post">
        <input type="hidden" name="id" id="product_id">
        <table>
            <tr>
                <td>产品名称</td>
                <td><input name="name" class="easyui-textbox"></td>
            </tr>
            <tr>
                <td>一级分类</td>
                <%--查询出所有的商铺的所有的东西--%>
                <td>
                    <input id="combobox_product" class="easyui-combobox" name="parentProduct.id"
                           data-options="valueField:'id',textField:'name',url:'/fristProduct/listAll'"/>
                </td>
            </tr>

            <%-- 编辑框底部确定和取消按钮 --%>
            <div id="stockoutcome_toolbar">
                <a class="easyui-linkbutton" iconCls="icon-ok" plain="true" data-cmd="save">确定</a>
                <a class="easyui-linkbutton" iconCls="icon-cancel" plain="true" data-cmd="cancel">取消</a>
            </div>

        </table>
    </form>
</div>
</body>
</html>
